package a.h;

import javax.swing.*;
import java.awt.*;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.util.Map;

class m
  extends h
{
  public m(ec paramec, Map paramMap)
  {
    this(paramec, paramMap, new JTextField(c(paramec, paramMap)));
  }
  
  m(ec paramec, Map paramMap, JTextField paramJTextField)
  {
    super(paramec, paramMap, paramJTextField);
    paramJTextField.addKeyListener(new KeyAdapter()
    {
      public void keyPressed(KeyEvent paramAnonymousKeyEvent)
      {
        if ((ec.t != 0) || ((10 == paramAnonymousKeyEvent.getKeyCode()) && (0 == paramAnonymousKeyEvent.getModifiers()))) {
          m.this.h();
        }
      }
    });
  }
  
  protected void h()
  {
    a(this.p.getText(), true);
  }
  
  Color e(boolean paramBoolean)
  {
    return paramBoolean ? ad.a("TextField.background") : ad.a("TextField.inactiveBackground");
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.h.m

 * JD-Core Version:    0.7.0.1

 */